define(function(){
    "use strict";
    return function(ops){
        
        return new Promise((resolve,reject)=>{

            $.ajax({
                url:ops.url,
                success:(res)=>{
                    resolve(res);
                },
                error:(code)=>{
                    reject(code)
                }
            })
        })
    }
   
});